﻿
@{
    ViewData["Title"] = "EditAllocate";
    Layout = "~/Views/Home/Main.cshtml";
}

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/layui/2.6.8/css/layui.css"> <!-- 引入layui样式 -->
    <style>
        .form-container {
            border: 2px solid #000; /* 黑色边框，宽度为2px */
            padding: 20px; /* 内边距 */
            margin-left: 100px; /* 整个容器的左边距 */
            width: calc(100% - 220px); /* 宽度为页面宽度的剩余部分，减去左边距和边框宽度 */
            box-sizing: border-box; /* 包含内边距和边框在内计算宽度 */
        }
    </style>
</head>


<h4>原料管理/调拨列表/编辑</h4>
<br/>
<br/>

<div class="form-container">
<h5 style="margin-left:120px;">仓库信息</h5>
<form class="layui-form" action="/Warehouse/StorageUpd">
    <div class="layui-form-item" style="margin-left:120px">

        <div class="layui-inline">
            <label class="layui-form-label">仓库编号:</label>
            <div class="layui-input-inline">
                <select id="WarehouseId" name="WarehouseId" lay-filter="cangku">
                      <option value="1">CK20241260810</option>
                </select>
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">任务编码:</label>
            <div class="layui-input-inline">
                <input type="text" id="LocationCoding" name="LocationCoding" placeholder="请输入任务编码" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>

    <div class="layui-form-item" style="margin-left:120px">

        <div class="layui-inline">
            <label class="layui-form-label">库区名称:</label>
            <div class="layui-input-inline">
                <input type="text" id="ReservoirName" name="ReservoirName" placeholder="请输入库区名称" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">库位名称:</label>
            <div class="layui-input-inline">
                <input type="text" id="BinLocationName" name="BinLocationName" placeholder="请输入库位名称" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>
</form>
</div>
<br/>
<div class="form-container">
<h5 style="margin-left:120px;">原料信息</h5>
<form class="layui-form" action="/Warehouse/StorageUpd">
    <div class="layui-form-item" style="margin-left:120px">

        <div class="layui-inline">
            <label class="layui-form-label">原料编号:</label>
            <div class="layui-input-inline">
                <select id="IngredientId" name="IngredientId" lay-filter="Ingredient">
                    <option value="1">YL62516111</option>
                </select>
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">规格型号:</label>
            <div class="layui-input-inline">
                <input type="text" id="Specification" name="Specification" placeholder="请输入规格型号" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>

    <div class="layui-form-item" style="margin-left:120px">

        <div class="layui-inline">
            <label class="layui-form-label">原料名称:</label>
            <div class="layui-input-inline">
                <input type="text" id="IngredientName" name="IngredientName" placeholder="请输入原料名称" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">原料尺寸:</label>
            <div class="layui-input-inline">
                <input type="text" id="Size" name="Size" placeholder="请输入原料尺寸" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>

        <div class="layui-form-item" style="margin-left:120px">

        <div class="layui-inline">
            <label class="layui-form-label">原料批次号:</label>
            <div class="layui-input-inline">
                <input type="text" id="Num" name="Num" placeholder="请输入原料批次号" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">单位:</label>
            <div class="layui-input-inline">
                <input type="text" id="Unit" name="Unit" placeholder="请输入单位" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>
</form>
</div>
<br/>
<div class="form-container">
<h5 style="margin-left:120px;">调拨信息</h5>
<form class="layui-form" method="post">
    <div class="layui-form-item" style="margin-left:120px">

        <div class="layui-inline">
            <label class="layui-form-label">调拨编号:</label>
            <div class="layui-input-inline">
                <input type="text" id="AllocateNumber" name="AllocateNumber" required lay-verify="required" placeholder="请输入调拨编号" lay-verify="required" autocomplete="off" class="layui-input" disabled>
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">调拨数量:</label>
            <div class="layui-input-inline">
                <input type="number" lay-affix="number" id="AllocateNum" name="AllocateNum" required lay-verify="required" placeholder="请输入调拨数量" min="1" class="layui-input">
            </div>
        </div>
    </div>

    <div class="layui-form-item" style="margin-left:120px">

    <div class="layui-inline">
      <label class="layui-form-label">调拨日期</label>
      <div class="layui-input-inline">
        <input type="text" class="layui-input" id="AllocateDate" name="AllocateDate" required lay-verify="required" placeholder="请输入调拨日期">
      </div>
    </div>
        <div class="layui-inline">
            <label class="layui-form-label">调拨人:</label>
            <div class="layui-input-inline">
                <input type="text" id="AllocatePerson" name="AllocatePerson" required lay-verify="required" placeholder="请输入调拨人" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>

        <div class="layui-form-item" style="margin-left:120px">

        <div class="layui-inline">
            <label class="layui-form-label">调拨原因:</label>
            <div class="layui-input-inline">
                <textarea id="AllocateReason" name="AllocateReason" required lay-verify="required" placeholder="请输入调拨原因" class="layui-textarea"></textarea>
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">备注:</label>
            <div class="layui-input-inline">
                <textarea id="Notes" name="Notes" placeholder="请输入备注" required lay-verify="required" class="layui-textarea"></textarea>
            </div>
        </div>
    </div>

    <div class="layui-form-item" style="margin-left:120px">

        <div class="layui-inline">
            <label class="layui-form-label">关联生产订单:</label>
            <div class="layui-input-inline">
                <div class="layui-input-inline">
                <input type="text" id="Associate" name="Associate" required lay-verify="required" placeholder="请输入关联生产订单" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
            </div> 
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">运输方式:</label>
            <div class="layui-input-inline">
               <select id="Transport" name="Transport" lay-filter="Transport">
                  <option value="">请选择运输方式</option>
                  <option value="传送带">传送带</option>
                  <option value="叉车">叉车</option>
               </select>
            </div>
        </div>
    </div>

   <div style="margin-left:1450px;margin-top:20px">
    <div class="layui-inline" class="layui-btn-container">
       <button type="button" class="layui-btn" lay-on="test-page-custom" onclick="location.href='/Allocate/ShowAllocateList'">
           <i class="layui-icon layui-icon-add-circle-fine"></i>取消
       </button>
       <button class="layui-btn" lay-submit lay-filter="formDemo">提交修改</button>
        </div>     
    </div>
</form>
</div>


<script src="~/js/Allocate/EditAllocate.js"></script>
<script>
layui.use(function(){
  var laydate = layui.laydate;
  // 日期时间选择器 - 日期和时间选择器同时显示（全面板）
  laydate.render({
    elem: '#AllocateDate',
    type: 'datetime',
    fullPanel: true // 2.8+
  });
});
</script>